Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

636139 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/90 - Guess the Number

README.md cody/swapnilsparsh/30DaysOfJavaScript/90 - Guess the Number/README.md
167 Views
0 Comments
# Guess My Number
A number gussing game using HTML, CSS and Javascript

# Links
Repository URL : https://github.com/IshitaBisaria/Guess-My-Number.git

Live Site URL : https://ishitabisaria.github.io/Guess-My-Number/

style.css cody/swapnilsparsh/30DaysOfJavaScript/90 - Guess the Number/style.css
104 Views
0 Comments
@import url('https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap');

* {
padding: 0;
margin: 0;
box-sizing: inherit;
}

index.html cody/swapnilsparsh/30DaysOfJavaScript/90 - Guess the Number/index.html
267 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Guess My Number</title>
<link rel="stylesheet" href="style.css">
script.js cody/swapnilsparsh/30DaysOfJavaScript/90 - Guess the Number/script.js
123 Views
0 Comments
`use strict`;
let secretNumber = Math.trunc(Math.random()*20) + 1;
let highScore = 0;
let score = 20;

const displayMessage = function (message) {
document.querySelector(`.message`).textContent = message;
}